﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DisinfectClassRoom
{
    public class ConcreteCommand : Command
    {
        public ConcreteCommand(Receiver receiver)
            : base(receiver)
        {
        }

        public override void Execute()
        {
            // 调用接收者方法
            _receiver.DisinfectClassroom();
        }
        public override void Execute(string name)
        {
            // 调用接收者方法
            _receiver.SingSong(name);

        }
        //public override void Execute(string name)
        //{
        //    throw new NotImplementedException();
        //}
    }
}
